package com.example.redis.controller.lock;

import com.example.redis.view.lock.Result;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @application:
 * @author: LiYuhang
 * @Date: 2021/7/24 22:24
 * @version: 0.1
 * @Description :
 * @Modified By:
 */



@RestController
@RequestMapping("")
public class IndexController {
    @Value("${server.port:}")
    private String port;
    @RequestMapping(value = {"","index"})
    public Result index(){
        return Result.OK(port);
    }

}
